<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>面试题</title>
    <link rel="stylesheet" th:href="@{/css/base.css}" />
</head>
<body>
<div th:replace="~{fragments/header :: header}">...</div>
<table border="1">
    <thead>
    <tr>
        <td>ID</td>
        <td>问题</td>
        <td>问题html</td>
        <td>答案</td>
        <td>答案html</td>
        <td>问题类型</td>
    </tr>
    </thead>
    <tbody>
    <tr th:if="${cases.size()} eq 0">
        <td colspan="3">没有用户信息!</td>
    </tr>
    <tr th:each="case : ${cases}">
        <td th:text="${case.id}"></td>
        <td th:text="${case.question}"></td>
        <td th:utext="${case.questionHtml}"></td>
        <td th:text="${case.answer}"></td>
        <td th:utext="${case.answerHtml}"></td>
        <td th:if="${case.type} eq 1">redis</td>
    </tr>
    </tbody>
</table>
</body>
</html>